<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">

        <div class="layui-form-item">
            <label class="layui-form-label">寺庙名称</label>
            <div class="layui-input-block">
                <input type="text" name="title" class="layui-input" lay-verify="required" placeholder="请输入寺庙名称"
                       value="{$row.title|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">寺庙电话</label>
            <div class="layui-input-block">
                <input type="text" name="mobile" class="layui-input" lay-verify="required" placeholder="请输入寺庙电话"
                       value="{$row.mobile|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">选择区域</label>
            <div class="layui-input-block" id="area-picker">
                <div class="layui-input-inline" style="width: 200px;">
                    <select name="province" class="province-selector" lay-verify="required"
                            data-value="{$row.province|default='重庆市'}" lay-filter="province-1" id="province">
                        <option value="">请选择省</option>
                    </select>
                </div>
                <div class="layui-input-inline" style="width: 200px;">
                    <select name="city" class="city-selector" data-value="{$row.city|default='重庆市'}"
                            lay-filter="city-1">
                        <option value="">请选择市</option>
                    </select>
                </div>
                <div class="layui-input-inline" style="width: 200px;">
                    <select name="county" class="county-selector" data-value="{$row.county|default='渝中区'}"
                            lay-filter="county-1">
                        <option value="">请选择区</option>
                    </select>
                </div>
            </div>

        </div>
        <style>
            #edui1 {
                z-index: 1 !important;
            }
        </style>
        <div class="layui-form-item">
            <label class="layui-form-label required">地理位置</label>
            <div class="layui-input-block" id="selectAddr"></div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">精度</label>
            <div class="layui-input-block">
                <input type="text" name="lat" class="layui-input" id="lat" disabled lay-verify="required" placeholder="请输入精度"
                       value="{$row.lat|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">纬度</label>
            <div class="layui-input-block">
                <input type="text" name="lng" class="layui-input" id="lng" disabled lay-verify="required" placeholder="请输入纬度"
                       value="{$row.lng|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">寺庙介绍</label>
            <div class="layui-input-block">
                <textarea name="description" id="description" cols="30" rows="10">{$row.description|raw|default=''}</textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                {foreach $getStatusList as $k=>$v}
                <input type="radio" name="status" value="{$k}" title="{$v}" {in name="k" value="$row.status"}checked=""{/in}>
                {/foreach}

            </div>
        </div>
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>

<script>
    $(function(){
        let ue = UE.getEditor("description")
    })
</script>